<extend name="Index::index" />
<block name="table">
	<div class="agoods_nav">
		<span>订单管理</span>
	</div>
	<div>
	<table class="table" border="1" cellpadding="5" cellspacing="0" align="center">
		<tr bgcolor="#ccc">
			<td>订单号</td>
			<td>评论商品</td>
			<td>评论者</td>
			<td>评论内容</td>
			<td>是否显示</td>
			<td>操作</td>
		</tr>
		<foreach name="list" item="val">
		<tr>
			<td>{$val['olb']}</td>
			<td>{$val['gname']}<img src="__ROOT__{$val['giname']}"></td>
			<td>{$val['uname']}</td>
			<td>{$val['text']}</td>	
			<td>
				<if condition="$val['status'] eq 1">
				<a href="{:U('Arguments/status',['id'=>$val['id']])}">显示</a>				
				<else />
				<a href="{:U('Arguments/status',['id'=>$val['id']])}">不显示</a>
				</if>	
			</td>
			<td>
				<a href="{:U('Arguments/reply',['id'=>$val['id']])}">回复</a>
			</td>
		</tr>
		</foreach>
	
	</table>
	
	<form action="{:U('Arguments/doreply',['id'=>$list[0]['id']])}" method="post">
		<div style="width:300px;"><h3>评论</h3></div>
		<div style="float:left;width:500px;"><textarea name="arg" style="width:400px;min-height:200px;" readonly >{$list[0]['text']}</textarea></div>
		<div style="width:300px; float:right;margin-top:-10px;"><h3>回复</h3></div>
		<div><textarea name="rtext" style="width:400px;min-height:200px;"></textarea>
		<input type="submit" value="提交"/></div>
	</form>
	</div>
</block>